package com.fcscs.cservice.client.main.ui;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HasHandlers;

public class PrecheckinDialogEvent extends GwtEvent<DialogEventHandler>{
	public static final Type<DialogEventHandler> TYPE = new Type<DialogEventHandler>();
	
	private String status;
	private String level;
	public PrecheckinDialogEvent(String prestatus, String level){
		super();
		status = prestatus;
		this.level = level;
	}
	@Override
	protected void dispatch(DialogEventHandler arg0) {
		// TODO Auto-generated method stub
		arg0.preOkButton(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<DialogEventHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}
	
	public static void prefireOkEvent(HasHandlers source, PrecheckinDialogEvent e){
		source.fireEvent(e);
	}
	public String getstatus(){
		return status;
	}
	
	public String getlevel(){
		return level;
	}
}
